package com.cloud.dao;

import com.cloud.pojo.ApprovalNoticeForApproval;
import com.cloud.pojo.ApprovalNotice;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @author： linJianHong
 * @dateTime： 15:17 2022/4/24
 * @Description:
 * @ClassName:
 */

@Mapper
public interface ApprovalNoticeDao {
    int create(ApprovalNotice approvalNotice);

    int update(@Param("id") int id, @Param("title") String title, @Param("notice") String notice,
               @Param("publishTime") Date publishTime, @Param("onlyForVolunteer") String onlyForVolunteer);

    int delete(int id);

    List<ApprovalNoticeForApproval> retrieve(String approvalId);

}
